package com.cgly.medical.service;

import com.cgly.medical.domain.DrugOrder;
import com.cgly.medical.domain.MultipleSelection;
import com.cgly.medical.model.DrugOrderModel;
import com.cgly.medical.model.EndOrder;
import com.cgly.medical.util.Msg;

import java.util.List;

public interface DrugOrderService {

    //查询所有的订单信息
    Msg getAllDrugOrder(Integer page,Integer limit);

    //根据条件查询订单信息
    Msg getSomeDrugOrder(DrugOrderModel drugOrderModel);

    //删除订单信息
    Msg deleteDrugOrder(DrugOrder drugOrder);

    //根据三主键查询唯一订单信息
    Msg getOneDrugOrder(DrugOrder drugOrder);

    //修改订单信息
    Msg updateDrugOrder(DrugOrderModel drugOrderModel);

    //插入订单
    Msg insertDrugOrder(DrugOrderModel drugOrderModel);

    //通过id查询订单
    DrugOrder getDrugOrderById(int orderId);
    //往数据库中插入最终Order_id
    Msg updatePatientHistoryOrder(List<EndOrder> params);


    //根据endOrderID查询药品订单
    List<DrugOrder> getDrugOrderByEndOrderId(String endOrderId);
}
